<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>示例9</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .container {
            display: flex;
            height: 40px;
            background-color: #ff0000;
            align-items: center;
        }

        .container .city {
            width: 60px;
            height: 40px;
            text-align: center;
            font-size: 16px;
            line-height: 40px;
            font-weight: normal;
            color: white;
        }

        .container .login {
            width: 60px;
            height: 40px;
            text-align: center;
            font-size: 16px;
            line-height: 40px;
            font-weight: normal;
            color: white;
        }

        .container input {
            flex: 1;
            height: 30px;
            border: none;
            outline: none;
            border-radius: 8px;
            text-indent: 5px;
        }

        .category-wrapper {
            display: flex;
            flex-wrap: wrap;
            width: 100%;
            margin-top: 10px;
        }

        .category-wrapper .box {
            width: 20%;
            text-align: center;
        }

        .category-wrapper .box img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }

        .category-wrapper .box p {
            text-align: center;
        }

        .g-list{
            padding: 10px;
        }
        /* 列表 */
        .g-list .goods {
            display: flex;
            background-color: rgb(251, 250, 249);
            margin-top: 10px;
        }

        .g-list .goods img {
            width: 100px;
            height: 100px;
            margin-right: 10px;
        }

        .g-list .goods .g-right {
            line-height: 22px;
            position: relative;
            width: 100%;
        }

        .g-list .goods .g-right h2 {
            font-weight: normal;
            font-size: 18px;
        }
        .g-list .goods .g-right .m-price{
            position: absolute;
            bottom: 2px;
            left: 2px;
        }

        .g-list .goods .g-right .m-sale{
            position: absolute;
            bottom: 2px;
            right: 2px;
        }
    </style>
</head>

<body>
    <div class="container">
        <h2 class="city">城市</h2>
        <input type="text" placeholder="请输入搜索内容">
        <h2 class="login">登录</h2>
    </div>
    <!-- 分类 -->
    <div class="category-wrapper">
        <div class="box">
            <img src="../img/11.jpg" alt="1">
            <p>美食</p>
        </div>
        <div class="box">
            <img src="../img/22.jpg" alt="1">
            <p>电脑</p>
        </div>

        <div class="box">
            <img src="../img/33.jpg" alt="1">
            <p>医疗</p>
        </div>

        <div class="box">
            <img src="../img/44.jpg" alt="1">
            <p>熊猫</p>
        </div>

        <div class="box">
            <img src="../img/11.jpg" alt="1">
            <p>美食</p>
        </div>

        <div class="box">
            <img src="../img/11.jpg" alt="1">
            <p>美食</p>
        </div>
        <div class="box">
            <img src="../img/22.jpg" alt="1">
            <p>电脑</p>
        </div>

        <div class="box">
            <img src="../img/33.jpg" alt="1">
            <p>熊猫</p>
        </div>

        <div class="box">
            <img src="../img/44.jpg" alt="1">
            <p>医疗</p>
        </div>

        <div class="box">
            <img src="../img/11.jpg" alt="1">
            <p>美食</p>
        </div>
    </div>


    <!-- 列表 -->
    <div class="g-list">
        <div class="goods">
            <img src="../img/22.jpg" alt="img">
            <div class="g-right">
                <h2>西城公馆游泳馆</h2>
                <p>一品天下成人游泳单人票</p>
                <p class="m-price"><span>16元</span>门市价20元素</p>
                <p class="m-sale">已售1163</p>
            </div>
        </div>

       
        <div class="goods">
            <img src="../img/11.jpg" alt="img">
            <div class="g-right">
                <h2>西城公馆游泳馆</h2>
                <p>一品天下成人游泳单人票</p>
                <p class="m-price"><span>16元</span>门市价20元素</p>
                <p class="m-sale">已售1163</p>
            </div>
        </div>

        <div class="goods">
            <img src="../img/33.jpg" alt="img">
            <div class="g-right">
                <h2>西城公馆游泳馆</h2>
                <p>一品天下成人游泳单人票</p>
                <p class="m-price"><span>16元</span>门市价20元素</p>
                <p class="m-sale">已售1163</p>
            </div>
        </div>
    </div>
</body>

</html>